<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>模块清单</title>
	<%@ include file="include/common.jsp" %>
  </head>
  <body>
  <div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container-fluid">
        <a class="brand" href="#">模块统一管理平台</a>
      </div>
  </div>
</div>
<div class="hr-mt"></div>
<div>
  	<h2 class="span12">模块调用演示</h2>
  	<div id="" class="span8">
  		<form action="#" class="well">
	  		<label>加密解密模块</label>
	  		<input type="text" id="endecode-input"><span id="endecode-result" class="help-inline"></span><br />
	  		<button type="button" class="btn" onclick="encode()">加密</button>
	  		<button type="button" class="btn" onclick="decode()">解密</button>
  		</form>
   	</div>
  </div>
  </body>
  <script type="text/javascript">
  	function encode() {
  		$("#endecode-result").load(Issue.constants.CONTEXT + "/demo/encode.do", {str : $("#endecode-input").val()});
  		return false;
  	}
  	function decode() {
  		$("#endecode-result").load(Issue.constants.CONTEXT + "/demo/decode.do",  {str : $("#endecode-input").val()});
  		return false;
  	}
  </script>
</html>
